<link rel="stylesheet" href="/appcamel/css/cupertino/jquery-ui-1.8.24.custom.css"/>
<style>
	#demo-frame > div.demo { padding: 10px !important; }
	
	</style>
<?php
$this->breadcrumbs=array(
	'Orders'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List orders', 'url'=>array('index')),
	array('label'=>'Create orders', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('orders-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
//echo $users;
//var_dump($users);
?>

<h1>Manage Orders</h1>
 
<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php /* $this->renderPartial('_search',array(
	'model'=>$model,
)); */ ?>
</div> 
<?php 
$itemsProvider = new CArrayDataProvider($users, array('keyField'=>'id'));  //, array('keyField'=>'user_id')


$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user_id',
	'selectionChanged'=>'js:show_user', 
	'dataProvider'=>$itemsProvider,
	//'filter'=>$model,
	'columns'=>array(
	array(
'header' => 'nmbr',
'value' => '$row+1',
),
		'id',
		'name',
		'user_id',
		//'much',
		'date_entered',
		
		
		/* array(
			'class'=>'CButtonColumn',
		), */
	),
)); 
 

Yii::app()->clientScript->registerScriptFile('https://maps.google.com/maps/api/js?sensor=false', CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile('/script/jquery-ui-1.8.24.full.js', CClientScript::POS_HEAD);
Yii::app()->clientScript->registerScriptFile('/script/map.js', CClientScript::POS_HEAD);


?>
<div class="demo">

<div id="slider"></div>

</div><!-- End demo -->

<div id="map_canvas" style="width:900px; height:300px"></div>
<span id="temp"> </span>